﻿<?
	/*
	 * 每页页头显示用户登录情况
	 * 
	 * author：	天
	 * 
	 * date：	2009-03-08
	 * 
	 */
?>

<html>
<head>
	<meta http-equiv="Content-Type" content="text/xml; charset=UTF-8">
</head>

<body>
	<?php
	if($user_list[0]->id)
	{
		?><div align = right>
		欢迎	<a href = "http://127.0.0.1/CodeIgniter/questions/my"><?=$user_list[0]->name ?></a>&nbsp;&nbsp;
			<a href = "logout">安全退出</a>
		</div><?
	}
	
	else
	{
	?><div align = right><a href = "http://127.0.0.1/CodeIgniter/login">登录</a>|<a href = "http://127.0.0.1/CodeIgniter/register">注册</a></div><?php
	}
	?>
</body>
</html>

